﻿using System;
using WEATHER.Components;
using System.Web;

namespace WEATHER.Modules.ONLINE.Pages
{
    public partial class Meteor : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            MeteorWeatherType weatherType = (MeteorWeatherType)Enum.Parse(typeof(MeteorWeatherType), Request.QueryString["MeteorWeatherType"]);
            Guid mid = new Guid(Request.QueryString["mid"]);
            ContentPane.InnerHtml = HttpUtility.HtmlDecode(Components.Meteor.GetWeatherOnline(mid, weatherType));
            //ContentPane.InnerHtml = HttpUtility.HtmlDecode(Components.Meteor.GetWeatherOffline(mid, weatherType));

            //editLink.NavigateUrl = HttpUrlBuilder.BuildUrl(mid, Item.MaxOfID(Request["MeteorWeatherType"]), "AddEditItem") + "&WeatherType=" + Request["MeteorWeatherType"];
            //editLink.Visible = Boolean.Parse(Request.QueryString["edit"]);    
        }
    }
}
